from django.shortcuts import render
from books.models import BooksInfo
# Create your views here.

def indexView(request):
    title = "首页"
    booklist = BooksInfo.objects.all()
    # 渲染
    return render(request, "index.html", locals())